package com.diorsunion.hedge.common;

/**
 * BO层返回结果类
 * Created by custe on 2016/8/9.
 */
public class BOResult {
    public final boolean success;
    public final String message;
    public final Exception exception;

    BOResult(boolean success, String message, Exception exception) {
        this.success = success;
        this.message = message;
        this.exception = exception;
    }

    public final static BOResult successResult(){
        return new BOResult(true,null,null);
    }

    public final static BOResult failResult(String message,Exception exception){
        return new BOResult(false,message,exception);
    }

}
